package org.jeecg.modules.demo.navigation.mapper;

import java.util.List;
import org.jeecg.modules.demo.navigation.entity.Information;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 信息表
 * @Author: jeecg-boot
 * @Date:   2019-09-18
 * @Version: V1.0
 */
public interface InformationMapper extends BaseMapper<Information> {

	public boolean deleteByMainId(@Param("mainId") String mainId);
    
	public List<Information> selectByMainId(@Param("mainId") String mainId);
	public int queryTypeCount(String typeStr);//查询类型数量
	public boolean updateStateById(@Param("id") String id,@Param("state") String state);//更改通知状态
	public boolean updateVisitsById(@Param("id")String id);//更新浏览量
	/*
	根据类型
	* 分页查询信息*/
	public List<Information> queryInformationPageByType(@Param("typeStr")String typeStr,@Param("noPage") Integer noPage,@Param("sizePage") Integer sizePage);
}
